package com.chandra.pos.product.dao.entity;

import com.chandra.pos.model.PosEntity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * Customer: T4671
 * Date: 10/5/13
 * Time: 10:25 AM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="CATEGORY")
public class Category extends PosEntity {



    @Column(name="PARENT_ID", unique = true, nullable = false)
    protected Long parentId;


    @Column(name="NAME", unique = true, nullable = true)
    private String name;



    @Column(name = "STATUS")
    private int status;

    @Column(name="DESCRIPTION", unique = false, nullable = true)
    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
}
